<div class="widget-box">
  <div class="widget-title title-bar">
    <h3>
      <span>{{employee.name}}-{{widget_title}}</span>
    </h3>
    <ul class="title-tag ul-inline">     
      <li>
        <a ui-sref=".new">添加合同</a>
      </li>
    </ul>
  </div>
  <div class="widget-content-table">
    <table class="table-border">
      <thead>
        <tr>
          <th class="th-no">序号</th>
          <th class="th-name">姓名</th>
          <th class="">合同编号</th>
          <th>合同类型</th>
          <th>签约时间</th>
          <th>到期时间</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="r in employee.contracts">
          <td>{{$index+1}}</td>
          <td>{{employee.name}}</td>
          <td>{{r.number}}</td>
          <td>{{r.contract_type.name}}</td>
          <td>{{r.valid_from}}</td>
          <td>{{r.valid_end}}</td>
          <td>{{r.state}}</td>
          <td>
            <a href="javascript:void(0)" ng-click="edit_contract(r.id)">编辑</a>
            <a href="javascript:void(0)" ng-confirm-click="你确定要删除此项？" confirmed-click="itemDelete($index)"  >删除</a>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
  <div ui-view ></div>
</div>